import Vue from 'vue'
import Router from 'vue-router'
import login from '@/page/login'
const index = resolve => require(['@/page/index'], resolve)

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        redirect: 'login'
    }, {
        path: '/login',
        name: 'login',
        component: login,
        meta: {
            tabbar: false,
            // title: '如何秀',
            // index: 1 //index用来定义当前路由的层级,由小到大,由低到高
        }
    }, {
        path: '/index',
        name: 'index',
        component: index,
        meta: {
            tabbar: true,
        }
    }]
})